package com.dehong.service.impl;

import com.dehong.vo.ContractPCVo;
import com.dehong.vo.ShipVo;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.dehong.mapper.ContractProductCMapper;
import com.dehong.model.ContractProductC;
import com.dehong.service.ContractProductCService;

import java.util.List;

@Service
public class ContractProductCServiceImpl implements ContractProductCService{

    @Resource
    private ContractProductCMapper contractProductCMapper;

    @Override
    public int deleteByPrimaryKey(String contractProductId) {
        return contractProductCMapper.deleteByPrimaryKey(contractProductId);
    }

    @Override
    public int insert(ContractProductC record) {
        return contractProductCMapper.insert(record);
    }

    @Override
    public int insertSelective(ContractProductC record) {
        return contractProductCMapper.insertSelective(record);
    }

    @Override
    public ContractProductC selectByPrimaryKey(String contractProductId) {
        return contractProductCMapper.selectByPrimaryKey(contractProductId);
    }

    @Override
    public int updateByPrimaryKeySelective(ContractProductC record) {
        return contractProductCMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ContractProductC record) {
        return contractProductCMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<ContractPCVo> selectCP() {
        return contractProductCMapper.selectCP();
    }

    @Override
    public int deleteByfactroyId(String factoryId) {
        return contractProductCMapper.deleteByfactroyId(factoryId);
    }

    @Override
    public List<ContractProductC> selectBycid(String c_id) {
        return contractProductCMapper.selectBycid(c_id);
    }



}
